/* 首页特定样式 */

/* 正在播放区域 */
.now-playing {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.cover-container {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cover-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 封面大图查看器 */
.cover-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cover-viewer.active {
    opacity: 1;
    visibility: visible;
}

.cover-viewer.closing {
    opacity: 0;
}

.cover-viewer-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.large-cover-container {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.large-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.cover-viewer-info {
    margin-top: 20px;
    text-align: center;
    color: white;
}

.cover-viewer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.cover-viewer-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.close-viewer-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-viewer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 分享对话框 */
.share-dialog, .download-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-dialog.active, .download-dialog.active {
    opacity: 1;
    visibility: visible;
}

.share-dialog.closing, .download-dialog.closing {
    opacity: 0;
}

.share-dialog-content, .download-dialog-content {
    width: 90%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.share-dialog.active .share-dialog-content,
.download-dialog.active .download-dialog-content {
    transform: translateY(0);
}

.share-dialog-header, .download-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-dialog-header h3, .download-dialog-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: var(--button-bg);
    color: var(--text-primary);
}

.share-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--button-bg);
    border-radius: 12px;
    margin-bottom: 20px;
}

.share-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.share-preview-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.share-preview-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--button-bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.share-option:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.share-option span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 下载对话框 */
.download-options {
    margin-bottom: 20px;
}

.download-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: var(--button-bg);
    margin-bottom: 10px;
    cursor: pointer;
}

.download-option:hover {
    background: var(--button-hover);
}

.download-option input {
    margin-right: 15px;
    accent-color: var(--highlight-color);
    width: 18px;
    height: 18px;
}

.download-option label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 1;
}

.quality-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.quality-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-btn {
    width: 100%;
    padding: 15px;
    background: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.2s;
}

.download-btn:hover {
    background: var(--highlight-hover);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1.1rem;
}

.audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.audio-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.author {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.description {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 650px;
}

/* 品质选择器 */
.quality-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.quality-btn {
    padding: 10px 20px;
    background: var(--button-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.quality-btn.active {
    background: var(--highlight-color);
    color: white;
}

.quality-btn:hover:not(.active) {
    background: var(--button-hover);
    color: var(--text-primary);
}

/* 播放控制器 */
.player-container {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-time, .duration {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: var(--progress-bg);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress {
    position: absolute;
    height: 100%;
    background: var(--progress-color);
    border-radius: 50px;
    width: 0%;
    transition: width 0.1s linear;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.play-btn {
    background: var(--text-primary);
    color: var(--primary-bg);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.play-btn:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    transform: scale(1.05);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
}

.volume-container i {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.volume-slider {
    width: 100px;
    height: 5px;
    background: var(--progress-bg);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.volume-progress {
    position: absolute;
    height: 100%;
    background: var(--text-secondary);
    border-radius: 50px;
    width: 70%;
}

/* 附加信息 */
.audio-extras {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.extra-info {
    display: flex;
    gap: 30px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.extra-item i {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--button-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background: var(--button-hover);
    color: var(--text-primary);
}

/* 响应式设计 - 首页专用 */
@media (max-width: 1100px) {
    .now-playing {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .audio-info {
        text-align: center;
    }
    
    .description {
        margin: 0 auto 30px;
    }
    
    .quality-selector {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cover-container {
        width: 220px;
        height: 220px;
    }
    
    .audio-info h2 {
        font-size: 1.8rem;
    }
    
    .extra-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .close-viewer-btn {
        top: 10px;
        right: 10px;
    }
    
    .controls {
        gap: 20px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        aspect-ratio: 1 / 1;
    }
    
    .volume-container {
        margin-left: 15px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .player-container {
        padding: 20px 15px;
    }
    
    .controls {
        gap: 15px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .play-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    
    .volume-container {
        margin-left: 10px;
    }
    
    .volume-slider {
        width: 40px;
    }
    
    .actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        padding-top: 10px;
    }
    
    .volume-container {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .volume-slider {
        width: 100px;
    }
    
    .play-btn {
        order: -1;
        margin: 0 10px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .download-dialog-content, .share-dialog-content {
        padding: 20px 15px;
    }
} 